package com.gusti.turnos.form;

import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * 
 * @author gusti
 *
 */
public class LoginForm {

	@NotEmpty(message="Email is required!")
	@Email(message="Email is bad-formed!")
	private String email;
	@NotEmpty(message="Password is required!")
	@Length(min=6, max=10, message="Password length must be between 6 and 10!")
	private String password;

	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
}
